<?php

/**
 * Class YOfflineController
 */
class YOfflineController extends CController
{
	public function actionNotice() {
		$message = Yii::app()->option->get('site_close_reasons');
		$viewFile = $this->getViewFile('site/notice');
		if ($viewFile) {
			$this->render('site/notice', array(
			'message' => $message,
			));
		} else {
			echo '<meta charset="' . Yii::app()->charset . '">';
			echo $message;
		}
	}
} 